using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DataTransferObject;
using Business;


namespace Presentation.FromInAn
{
    public partial class FrmThongKeSachHong : Form
    {
        public FrmThongKeSachHong()
        {
            InitializeComponent();
        }

        private void crptsachhong_Load(object sender, EventArgs e)
        {
            UserControlls.rptTKSachHong sachhong = new Presentation.UserControlls.rptTKSachHong();
            sachhong = new Presentation.UserControlls.rptTKSachHong();
            CrystalDecisions.Shared.TableLogOnInfo curtablelog;
            foreach (CrystalDecisions.CrystalReports.Engine.Table curtable in sachhong.Database.Tables)
            {
                curtablelog = curtable.LogOnInfo;
                curtablelog.ConnectionInfo.ServerName = ".";
                curtable.ApplyLogOnInfo(curtablelog);
            }
            crptsachhong.ReportSource = sachhong ;
        }
    }
}